package com.lizhenhua.fmmall.mapper;

import com.lizhenhua.fmmall.entity.Category;
import com.lizhenhua.fmmall.entity.CategoryIndex;
import com.lizhenhua.fmmall.entity.CategoryVo;
import com.lizhenhua.fmmall.general.GeneralDao;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import java.util.List;
@Repository
public interface CategoryMapper extends GeneralDao<Category> {
    //使用连接查询
    public List<CategoryVo> selectAllCategorys();

    // 使用子查询
    public List<CategoryVo> selectAllCategory2(int parentId);

    // 查询一级类别

    public List<CategoryIndex> selectFirstLevel();


}